#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    //单独对一个按钮生效
    //ui->pushButton->setStyleSheet("QPushButton{color:#ffaa11}");
    //针对MainWindow下所有按钮生效
    this->setStyleSheet("QPushButton{color:red;}");
}

MainWindow::~MainWindow()
{
    delete ui;
}

